package com.yuw.singleton;

public class TestDriver {

	public static void main(String[] args) {
		test012();
	}

	private static void test012() {
		// 创建一个学生类的实例对象
		Student3 stu0 = Student3.getNewInstance();
		// 再次创建
		Student3 stu1 = Student3.getNewInstance();

		System.out.println("stu0==stu1::" + (stu1 == stu0));
	}

	
	private static void test011() {
		// 创建一个学生类的实例对象
		Student2 stu0 = Student2.getNewInstance();
		// 再次创建
		Student2 stu1 = Student2.getNewInstance();

		System.out.println("stu0==stu1::" + (stu1 == stu0));
	}

	
	private static void test01() {
		// 创建一个学生类的实例对象
		Student stu0 = Student.getNewInstance();
		// 再次创建
		Student stu1 = Student.getNewInstance();

		System.out.println("stu0==stu1::" + (stu1 == stu0));
	}

}
